import {
	http
} from '@/utils/request.js'

// 点击登陆
export function h5login(miniProgramAppId, data) {
	return http.post('agent/mp/h5login/' + miniProgramAppId, data)
}

// 点击注册
export function h5register(miniProgramAppId, data) {
	return http.post('agent/mp/h5register/' + miniProgramAppId, data)
}

// 点击退出
export function btnLogout() {
	return http.post('agent/mp/h5logout/')
}

// 获取验证码
export function getCodeImg() {
	return http.get('agent/mp/captchaImage')
}
// 查询绑定结果
export function getUserInfoByMp(data) {
	return http.post('agent/mp/getUserInfoByMp', data)
}
